package org.yaukie.core.anotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface MyJob {
    String value() default "";

    JobType jobType() default MyJob.JobType.CRON;

    int seconds() default 0;

    int count() default 0;

    String start() default "";

    String end() default "";

    public static enum JobType {
        CRON,
        TIMER;

        private JobType() {
        }
    }
}
